<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JSPGOU商品 - ${web.name}${web.additionalTitle!}</title>
<style>
.box{ width:440px;}
.box li{ float:left; width:400px; height:100px; margin-right:10px;}
.test{width:480px; height:200px; margin:auto; overflow-x:auto; overflow-y:hidden;} 
.test ul{width:20000px;list-style-type:none;}
.test ul li{float:left;}

.group .gt {
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    height: 50px;
}
.group .gt .gt-title {
    border-left: 6px solid #d4145a;
    float: left;
    height: 40px;
    padding: 5px 12px;
    width: 150px;
}
.group .gt .title-cn {
    font-size: 14px;
    line-height: 20px;
}
.group .gt .title-en {
    color: #999;
    font-size: 14px;
    line-height: 20px;
}
.group .gt .gt-btns {
    float: right;
    height: 46px;
    padding: 7px;
    vertical-align: middle;
}
.group .gc {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: -moz-use-text-color #ddd #ddd;
    border-image: none;
    border-right: 1px solid #ddd;
    border-style: none solid solid;
    border-width: 0 1px 1px;
}


#recentlyViewed .p-wrap {
    border-bottom: 1px dashed #ddd;
    height: 80px;
    margin: 0 6px;
    padding: 6px 0;
}
#recentlyViewed li:last-child .p-wrap {
    border-bottom: 0 none;
}
#recentlyViewed .p-img {
    float: left;
}
#recentlyViewed .p-img img {
    height: 80px;
    width: 80px;
}
#recentlyViewed .p-img img:hover {
    opacity: 0.5;
}
#recentlyViewed .p-info {
    margin-left: 86px;
}
#recentlyViewed .p-name {
    height: 54px;
    overflow: hidden;
}
#recentlyViewed .p-name a {
    color: #666;
    line-height: 18px;
    text-decoration: none;
}
#recentlyViewed .p-name a:hover {
    color: red;
    text-decoration: underline;
}
#recentlyViewed .p-price {
    color: #f92767;
    font-family: "Georgia";
    height: 20px;
    line-height: 20px;
}
#recentlyViewed .p-price s {
    text-decoration: none;
}


</style>
<link href="${root}/u/css/product.css" type="text/css" rel="stylesheet" />
<link href="${storeRoot}/css/dianpu.css" rel="stylesheet" type="text/css" />
<link href="${root}/u/css/global.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/layout.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/pshow.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/common.css" type="text/css" rel="stylesheet" />

<script src="${root}/u/js/jquery.js" type="text/javascript"></script>
<script src="${root}/u/js/product.js"  type="text/javascript"></script>
<link href="${root}/u/css/service.css" type="text/css" rel="stylesheet" />
<script language="JavaScript" type="text/JavaScript">
$(function(){
	$.post("${base}/historyRecord.jspx",{productId:"${product.id}"},function(data){});
});
function g(o){
	return document.getElementById(o);
}
function HoverLi(m,n,counter){
	for(var i=1;i<=counter;i++){
		g('tb_'+m+i).className='spms_normal';
		g('tbc_'+m+i).className='undis';
	}
	g('tbc_'+m+n).className='dis';
	g('tb_'+m+n).className='spms_curr';
}
function HoverLi1(m,n,counter){
	for(var i=1;i<=counter;i++){
		g('tb1_'+m+i).className='spms_normal';
		g('tbc1_'+m+i).className='undis';
	}
	g('tbc1_'+m+n).className='dis';
	g('tb1_'+m+n).className='spms_curr';
}
[#if category.colorsize]
 function addToCart(productId,count,fashId) {
	
 	if(!Core.username()) {
 		location.href='${loginUrl}';
 		return;
 	}
 	$.post('${base}/cart/add_orderItem.jspx', {
 		'productId' : productId,
 		'productAmount' : count,
 		'fashId': fashId
 	}, function(data) {
 		if(data.status==1) {
 			location.href='${base}/cart/shopping_cart.jspx?backUrl=${location}';
 		} else if(data.status==0) {
 			location.href='${loginUrl}';
 		}else if(data.status==4){
 			alert(data.error);
 			location.href='${product.url}';	
 		} else if(data.status==3) {
 			alert(data.error);
 			location.href='${product.url}';
 		}  else {
 			$('#input1').css("display","block");
 			alert(data.error);
 		}
 		
 	},'json');
 }
function buyNow(productId,count,fashId){
	 $.post('${base}/cart/add_orderItem.jspx',{
		 'productId':productId,
		 'productAmount':count,
		 'fashId':fashId
	 },function(data) {
	 		if(data.status==1) {
	 			location.href='${base}/buyNow.jspx?productId='+productId+'&count='+count;
	 		} else if(data.status==0) {
	 			location.href='${loginUrl}';
	 		} else if(data.status==4){
	 			alert(data.error);
	 			location.href='${product.url}';
	 		}else {
	 			$('#input1').css("display","block");
	 			alert(data.error);
	 		}
	 		
	 	},'json');
}
 [#else]
 //加入购物车
  function addToCart(productId,count) {
 	if(!Core.username()) {
 		location.href='${loginUrl}';
 		return;
 	}
 	$.post('${base}/cart/add_orderItem.jspx', {
 		'productId' : productId,
 		'productAmount' : count
 	}, function(data) {
 		if(data.status==1) {
 			location.href='${base}/cart/shopping_cart.jspx?backUrl=${location}';
 		} else if(data.status==0) {
 			location.href='${loginUrl}';
 		}else if(data.status==4){
 			alert(data.error);
 			location.href='${product.url}';
 		}else if(data.status==3) {
 			alert(data.error);
 		    location.href='${product.url}';
 		} else {
 			$('#input1').css("display","block");
 			alert(data.error); 
 		}
 		
 	},'json');
 }
 //立即购买
 function buyNow(productId,count) {
	 	$.post('${base}/cart/add_orderItem.jspx', {
	 		'productId' : productId,
	 		'productAmount' : count
	 	}, function(data) {
	 		if(data.status==1) {
	 			location.href='${base}/buyNow.jspx?productId='+productId+'&count='+count;
	 		} else if(data.status==0) {
	 			location.href='${loginUrl}';
	 		}else if(data.status==4){	
	 			alert(data.error);
	 			location.herf='${product.url}'; 		
	 		}else if(data.status==3){
	 			alert(data.error);
	 			location.href='${product.url}';
	 		}else {
	 			$('#input1').css("display","block");
	 			alert(data.error);
	 		}
	 		
	 	},'json');
	 }
 [/#if]
function addToPopularity(popularityId){
	if(!Core.username()) {
		location.href='${loginUrl}';
		return;
	}
	$.post('${base}/cart/add_popularity.jspx', {
	   'popularityId': popularityId
	}, function(data) {
		if(data.status==1) {
			location.href='${base}/cart/shopping_cart.jspx?backUrl=${location}';
		} else if(data.status==0) {
			location.href='${loginUrl}';
		} else {
			alert(data.error);
		}
	},'json');
}

function addToCollect(productId){
	$.post('${base}/collect/add_to_collect.jspx',{
		'productId':productId
		}, function(data){
            if(data.status == 1){
            	 alert('收藏成功!');
            }else if(data.status== 2){
                    alert('收藏过该商品');
            }else{
            	location.href='${base}/login.jspx';
            }
	   },'json');
}
function ChangeDiv(divId,divName,zDivCount) 
{ 
 for(i=0;i<zDivCount;i++)
 {
     document.getElementById(divName+i).style.display="none"; 
 }
 document.getElementById(divName+divId).style.display="block"; 
} 
function addTocombinations(productId,combinations) {
	var arr = new Array;
	for (var i = 0; i < combinations.length; i++) {
		if (combinations[i].checked) {
			arr.length += 1;
			arr[arr.length - 1] = combinations[i].value;
		}
	}
	$.post('${base}/cart/add_combinations.jspx', {
 		'productId' : productId,
 		'ids' : arr.join(",")
 	}, function(data) {
 		if(data.status==1) {
 			location.href='${base}/cart/shopping_cart.jspx?backUrl=${location}';
 		} else if(data.status==0) {
 			
 			location.href='${loginUrl}';

 		}else if(data.status==4){	
 			
 			alert(data.error);
 			location.href='${product.url}';
 		}else if(data.status==5){
 			alert(data.error);
 			location.href='${product.url}';
 			
 		} else if(data.status==3){
 			alert(data.error);
 			
 			location.href='${product.url}';
 		}else {

 			alert(data.error);
 		}
 	},'json');
}

//预售js
function addToYushou(productId,count){
	location.href='${base}/yushou/checkout_yushou.jspx?productid='+productId+'&count='+count;
}
</script>
</head>
<body>

[#include "../include/在线咨询.html"/]
[#include "../include/页头顶栏.html"/]
<div id="head">
	[#include "../include/页头搜索栏.html"/]
    [#include "../include/页头导航栏.html"/]
</div>
<div class="position">您现在的位置：<a href="${base}/">首页</a>  » <a href="${category.url!}" class="red">${category.name!}</a></div>
<div class="center mt10">

  <div class="produce clearfix">
	 <div class="p_title"><h2><font id="productMainName">${product.name!}</font></h2></div>
	 <div class="property property_box coat">
	   <div class="specific_info1">
	   [#if category.colorsize]
	   <input type="hidden" id="current_merchantId" value="[#if product.productFashion??]${product.productFashion.id}[/#if]"/>	
		[#if product.productFashion??]
		  <dl class="clearfix">
			<dt>销&nbsp;&nbsp;售&nbsp;价：</dt>
			<dd><span class="price_1store productPriceSpan  f24">¥<b class="sys_item_price">${product.productFashion.salePrice!}</b></span>
			    <span class="price_1store">元</span>
			    <span class="gift_points">赠送积分：
			    <strong> [#if product.score??]${product.score!}分[#else]无积分[/#if]</strong>
			    </span>
			</dd>
		  </dl>
		  <dl class="clearfix">
			<dt>市&nbsp;&nbsp;场&nbsp;价：</dt>
			<dd><del class="old_price">¥<b class="sys_item_mktprice">${product.productFashion.marketPrice!}</b>元</del></dd>
		  </dl>
		 [/#if]
		[#else]
			<dl class="clearfix">
			<dt>销&nbsp;&nbsp;售&nbsp;价：</dt>
			<dd><span class="price_1store productPriceSpan  f24">¥${product.salePrice!}</span>
			    <span class="price_1store">元</span>
			    <span class="gift_points">赠送积分：
			    <strong> [#if product.score??]${product.score!}分[#else]无积分[/#if]</strong>
			    </span>
			</dd>
		  </dl>
		  <dl class="clearfix">
			<dt>市&nbsp;&nbsp;场&nbsp;价：</dt>
			<dd><del class="old_price">¥${product.marketPrice!}元</del></dd>
		  </dl>
		[/#if]	
		[#if product.yushou??]
					[#if product.yushou??&&product.yushou==true&&product.yushoubegindate??&&product.yushoubegindate lte .now&&product.yushouenddate??&&product.yushouenddate gt .now]
						<dl class="clearfix">
						<dt>注&nbsp;&nbsp;&nbsp;意：</dt>
						<dd>此商品为预售商品[#if product.dingjin??],需支付定金${product.dingjin}元，[#if product.weikuan??]尾款为${product.weikuan}元,[/#if][#if product.yushoubegindate??]预售活动开始时间为${product.yushoubegindate},[/#if][#if product.yushouenddate??]截止时间为${product.yushouenddate}[/#if][/#if]</dd>
						</dl>
					[/#if]	
		[/#if]			
	 </div>		
     <div class="specific_info2">
     [#if category.colorsize]
     	<div class="sys_item_spec">
     	[#list standardTypeList as standardType]
     		[#if standardType.dataType]
     			<dl class="sys_item_specpara clearfix" data-sid="${standardType_index+1}" [#if arr??]data-attrval="${arr[standardType_index]}"[/#if]>
					<dt>${standardType.name}</dt>
					<dd>
						<ul class="sys_spec_img">
						      [#list psList as ps]
		               	        [#if standardType.id=ps.type.id]
		                    		<li data-aid="${ps.standard.id!}" [#if product.productFashion.standards?seq_contains(ps.standard)]class="selected"[#else]class=""[/#if]><a href="javascript:;" title="${ps.standard.name}"><img src="${base!}${ps.imgPath!}" alt="${ps.standard.name}" /></a><i></i></li>
						  		[/#if]
		                      [/#list]
						</ul>
					</dd>
			   </dl>
		   [#else]
				<dl class="sys_item_specpara clearfix" data-sid="${standardType_index+1}" [#if arr??]data-attrval="${arr[standardType_index]}"[/#if]>
					<dt>${standardType.name}</dt>
					<dd>
						<ul class="sys_spec_text">
						 [#list psList as ps]
		               	        [#if standardType.id=ps.type.id]
									<li data-aid="${ps.standard.id!}" [#if product.productFashion.standards?seq_contains(ps.standard)]class="selected"[#else]class=""[/#if]><a href="javascript:;" title="${ps.standard.name}">${ps.standard.name}</a><i></i></li>
								[/#if]
		                 [/#list]
						</ul>
					</dd>
				</dl>
			[/#if]
		[/#list]
		</div>
	 [/#if]	
		<dl id="goToBuyDistrict" class="clearfix">
			<dt>我      要      买：</dt>
			<dd>
				<div class="computing">
					<input type="button" class="reduce" onclick="decrementAll();"/>
					<input type="text" id="product_amount" name="productAmount" onchange ="buyButtonNumChange('product_amount')" class="num" onkeyup="inputOnlyNum(this, 1, 999);" value="1"/>
					<input type="button" class="add" onclick="incrementAll();"/>
				</div>
			</dd>
		</dl>										
		[#if category.colorsize]
		<table>
		   <tr id="seriesShow" class="hide">
			  <td width="84"><span class="select">您选择了：</span></td>
			  <td colspan="4">
							<span class="result">
							<b class="sys_item_attitude">
							[#if product.productFashion??]${product.productFashion.attitude!}[/#if]
							</b>
							</span>&nbsp;
			  </td>
		   </tr>
		 <tr id="buyButtonsDistrict">
			  <td width="84">&nbsp;</td>

			   <td>
			   <form action="${base}/noctice/v_noctice.jspx"  method="post" > 
			   [#if product.prohibit]
			        [#if product.onSale]
			        	[#if product.yushou??&&product.yushou==true]
							[#if product.yushoubegindate??&&product.yushoubegindate lte .now&&product.yushouenddate??&&product.yushouenddate gt .now]
								<input type="button" class="add_shopping_cart" value="付定金" onclick="javascript:addToYushou(${product.id},$('#product_amount').val());"/>
						    [#else]
						    	<input type="button" class="add_shopping_cart_gm" style="width:120px;" value="预售活动已经结束"/>
						    [/#if]
			        	[#else]
				          <input type="hidden" value="${product.id}" name="productId"/>  
				         <input type="submit" value="到货通知" style="color: red;display:none;" id="input1"   onclick="alert('你的通知已发送')">
				         <input type="button" class="add_shopping_cart" value="立即购买" onclick="javascript:buyNow(${product.id},$('#product_amount').val(),$('#current_merchantId').val());" style="margin-right:10px;" />
				         <input type="button" class="add_shopping_cart" value="加入购物车" onclick="javascript:addToCart(${product.id},$('#product_amount').val(),$('#current_merchantId').val());"/>
			        	[/#if]
			        [#else] 
			        	<font color="red" >商品已下架</font>  
			        [/#if]
			    [#else]    
			       <font color="red" >商品已禁售</font>  
			   [/#if]
      </form>
			   </td>
			   	<td>
					<a class="collection"  href="javascript:void(0);" onclick="javascript:addToCollect(${product.id});">收藏&gt;&gt;</a>
				</td>
		   </tr>
		</table>
		 [#else]
		<table> 
		 <tr id="buyButtonsDistrict">
			  <td width="84">&nbsp;</td>
			   <td> 
			   <form action="${base}/noctice/v_noctice.jspx"  method="post" >
                [#if product.prohibit]
			      [#if product.onSale]
			      	[#if product.yushou??&&product.yushou==true&&product.yushoubegindate??&&product.yushoubegindate lte .now&&product.yushouenddate??&&product.yushouenddate gt .now]
						<input type="button" class="add_shopping_cart" value="付定金" onclick="javascript:addToYushou(${product.id},$('#product_amount').val());"/>
		            [#else]
				      <input type="hidden" value="${product.id}" name="productId"/>     
				      <input type="submit" value="到货通知" style="color: red;display:none;" id="input1" onclick="alert('你的通知已发送')" >
				      <input type="button" class="add_shopping_cart" value="立即购买" onclick="javascript:buyNow(${product.id},$('#product_amount').val());" style="margin-right:10px;" />
				      <input type="button" class="add_shopping_cart" value="加入购物车" onclick="javascript:addToCart(${product.id},$('#product_amount').val());"/>
                  	[/#if]
                  [#else]
                  	 <font color="red" >商品已下架</font>
                  [/#if]
                 [#else] 
                  <font color="red" >商品已禁售</font>
                 [/#if]          
			 </form>
			   </td>
			   	<td>
					<a class="collection"  href="javascript:void(0);" onclick="javascript:addToCollect(${product.id});">收藏&gt;&gt;</a>
				</td>
		   </tr>
		</table>
		[/#if] 
	</div>         
	<div class="specific_info1">
		<dl class="clearfix">
			<dt>商品编号：</dt>
			<dd id="productCode">${product.productExt.code!}</dd>
		</dl>		
        <dl class="clearfix">
			 <dt>分&nbsp;&nbsp;享&nbsp;到：</dt>
			 <dd class="share_ico">
			 [#if category.colorsize]
			 	<a class="ico_sina" href="javascript:(function(){var rul=location.href;if(rul.indexOf('?')>0){rul = rul +'&'}else{rul = rul +'?'};rul = rul +'tarcker_u=9402576';window.open(' http://v.t.sina.com.cn/share/share.php?title=【${product.name!}】,JSPGOU价 ￥[#if product.productFashion??]${product.productFashion.salePrice!}[/#if]&url='+encodeURIComponent(rul),'_blank','width=615,height=505');})()">新浪微博</a>
			    <a class="ico_qq" href="javascript:void(0)" onclick="posttoWb('http://v.t.qq.com/share/share.php','${product.name!}￥[#if product.productFashion??]${product.productFashion.salePrice!}[/#if]','2fc26c2514bb48ec891170ce68db2683');" >腾讯微博</a>
			 [#else]
	            <a class="ico_sina" href="javascript:(function(){var rul=location.href;if(rul.indexOf('?')>0){rul = rul +'&'}else{rul = rul +'?'};rul = rul +'tarcker_u=9402576';window.open(' http://v.t.sina.com.cn/share/share.php?title=【${product.name!}】,JSPGOU价 ￥${product.salePrice!}&url='+encodeURIComponent(rul),'_blank','width=615,height=505');})()">新浪微博</a>
			    <a class="ico_qq" href="javascript:void(0)" onclick="posttoWb('http://v.t.qq.com/share/share.php','${product.name!}￥${product.salePrice!}','2fc26c2514bb48ec891170ce68db2683');" >腾讯微博</a>
             [/#if]
            </dd>
        </dl>			
   </div>
  </div><!-- property -->
  <div class="gallery " id="gallery_view">
	<div class="pic" id="mainPic">
		 [#if product.pictures?? && product.pictures?size gt 0]
           [#list product.pictures as pic]
              [#if pic_index==0]
                 <a id="productImgA" class="jqzoom" href="${base!}${pic.picturePath!}"  style="width:378px;height:378px;">
			      <img id="productImg" src="${base!}${pic.picturePath!}" alt="${product.name!}" width="378" height="378"/>
	          	</a>
               [/#if]
          [/#list]
        [/#if]
	</div>
	<div class="clear"></div>
	<div class="pic_slide">
		<span class="prev" id="prevBtn"></span>
			<div class="pic_slide_box" id="sliderImgs">
				<ul id="detailPictureSlider">
				  [#if product.pictures?? && product.pictures?size gt 0]
                      [#list product.pictures as pic]
                         [#if pic_index==0]
                           	<li><img  class="selected" src="${base!}${pic.picturePath!}" onmouseover="initCurrPicture(jQuery(this),'${base!}${pic.picturePath!}','${base!}${pic.picturePath!}')" width="58" height="58" /></li>
                         [#else]
                            <li><img src="${base!}${pic.picturePath!}" onmouseover="initCurrPicture(jQuery(this),'${base!}${pic.picturePath!}','${base!}${pic.picturePath!}')" width="58" height="58" /></li>
                         [/#if]
                        [/#list]
                       [/#if]
				</ul>
			</div>
	   <span class="next" id="nextBtn"></span>
	</div>
  </div><!-- gallery -->
 </div><!-- produce -->	 
[#if product.popularityGroups??]
[#if product.popularityGroups?size gt 0]

  <div class="produce clearfix">
  
      <div id="favorable-suit" class="m m2 hide" style="display: block;">
<div class="mt">
<h2>优惠套装</h2>
</div>
<div class="mc">
<ul class="stab lh">
	[#list product.popularityGroups as popularityGroup]
    	<li title="${popularityGroup.name!}" onMouseMove="JavaScript:ChangeDiv('${popularityGroup_index}','JKDiv_',${product.popularityGroups?size})">优惠套装${popularityGroup_index+1}[#if popularityGroup_has_next]&nbsp;|&nbsp;[/#if]</li> 
    [/#list]
</ul>
[#list product.popularityGroups as popularityGroup]
<div id="JKDiv_${popularityGroup_index}" [#if popularityGroup_index=0]style="display: block;[#else]style="display:none;"[/#if]">
<div class="suits">
<ul class="lh" style="width:695px">
[#assign sale=0]
[#list popularityGroup.products as product]
<li [#if product_has_next]class=""[#else]class="last-item"[/#if] >
<s></s>
<div class="p-img">
 <a href="${product.url!}" target="_blank">
<img src="${base!}${product.productExt.coverImg!}" width="100" height="100" alt="" />
</a>
</div>
[#if product.prohibit]
		[#if product.onSale]
		<div class="p-name">
		<a target="_blank" href="${product.url!}">${product.name!}</a>
		</div>
		[#else]<div class="p-name">
		<a target="_blank" href="${product.url!}">${product.name!}<br/><b style="color: red;">该商品已下架!<b/></a>
		[#assign sale=sale+1]
		</div>
		[/#if]
[#else]<div class="p-name">
		<a target="_blank" href="${product.url!}">${product.name!}<br/><b style="color: red;">该商品已禁售!<b/></a>
		[#assign sale=sale+1]
		</div>
[/#if]		
		
</li>
[/#list]


</ul>
</div>
<div class="infos">
<s></s>
<div class="p-name">
${popularityGroup.name!}
</div>
<div class="p-price">
套  装  价：
<strong class="fitting-price">${popularityGroup.price-popularityGroup.privilege}</strong>
</div>
<div class="p-price">
原价：
<del class="orign-price">${popularityGroup.price!}</del>
</div>
<div class="p-saving">
立即节省：
<span class="fitting-saving">${popularityGroup.privilege!}</span>
</div>
<div class="btns">
<form id="jvForm" action="${base}/cart/season_pass.jspx" method="post">   
 <input type="hidden" id="popularityId" name="popularityId" value='${popularityGroup.id!}'/>
 <input type="hidden" name="pId" value='${product.id!}'/>
 [#if sale==0]
     <input type="button" class="add_shopping_cart" value="购买套餐" onclick="form.submit();"/>
 [#else]
     <font color="red">含有禁售或下架商品</font>
[/#if]
</form>
</div>
</div>
</div>
[/#list]
</div>
</div>
 </div>  
 [/#if]     
 [/#if]
 [#if product.combinations!?size>0]
<form name="combinations">
 <div class="recommend">
	组合商品
	<div>
		<div class="FittingGoodsMain">
			<img width="160" height="160" border="0" style="display: inline;" src="${base!}${product.productExt.coverImg!}">
			<span class="FittingGoodsMainName">
				${product.name!}
				[#if product.prohibit]
				     [#if !product.onSale]
				     	<br/><font color="red">该商品已下架</font>
				     [/#if]
				[#else]
				<br/><font color="red">该商品已禁售</font>
				[/#if]
			</span>
		</div>
		<div class="FittingGoodsDetail">
				<div class="FittingGoodsDetailGoods" >
				<div class="test">
					<ul style="margin:0px;">
					[#list product.combinations as p]
						<li>
							<span class="FGDGImg">
								<a title="[@text_cut s=p.name len='8' append='...'/] " target="_blank" href="${p.url!}">
									<img class="imglazy" width="100" height="100"  style="display: block;" src="${base!}${p.productExt.coverImg!}">
								</a>
								<a title="[@text_cut s=p.name len='8' append='...'/]" target="_blank" href="${p.url!}">[@text_cut s=p.name len='8' append='...'/]</a>
							
								[#if p.prohibit] 
								        [#if p.onSale]
								<input type="checkbox" name='ids' value='${p.id}'>
								<label class="p-price" >
                                  <strong>￥${p.salePrice!}</strong>
                                 </label>
                                         [#else] <input type="checkbox" name='ids' value='${p.id}' disabled>
					                                <br/>
					                                <font color="red">该商品已下架</font>
                                         [/#if]
                                [#else]
                                <input type="checkbox" name='ids' value='${p.id}' disabled>
                                <br/>
                                <font color="red">该商品已禁售</font>
                                [/#if]
                                
							</span>
						</li>
					[/#list]
					
					</ul>
				</div>
				</div>
		   </div>
					 <div class="FittingBottom">
						<div class="FBText">
						   [#if product.prohibit]
						          [#if product.onSale]
							 <input type="button" value="购买人气组合" onclick="addTocombinations(${product.id},this.form)"/>
							      [#else] <font color="purple">主商品已下架，无法购买组合</font>
							      [/#if]
						   [#else]
						     <font color="purple">主商品已禁售，无法购买组合</font>
						   [/#if]
						</div>
					 </div>
		    </div>
	</div>		
 
 </form>
 [/#if]
 <div class="spxx">
       <ul class="spxx_type">
              <li class="spms_curr" id="tb_11" onclick="HoverLi(1,1,6)" style="cursor: hand"><a>商品祥情</a></li>	
              <li class="spms_normal" id="tb_12" onclick="HoverLi(1,2,6)" style="cursor: hand"><a>服务承诺</a></li> 
              <li class="spms_normal" id="tb_13" onclick="HoverLi(1,3,6)" style="cursor: hand"><a>商品评价</a></li>
              <li class="spms_normal" id="tb_14" onclick="HoverLi(1,4,6)" style="cursor: hand"><a>商品咨询</a></li>
              <li class="spms_normal" id="tb_15" onclick="HoverLi(1,5,6)" style="cursor: hand"><a>成交记录</a></li>
              <li class="spms_normal" id="tb_16" onclick="HoverLi(1,6,6)" style="cursor: hand"><a>最近浏览</a></li>
       </ul>
       <div id="tbc_11"  class="dis">
          <div class="intro_box">
                   ${product.text!}
          </div>
      </div>  
      <div class="undis" id="tbc_12">
          <div class="intro_box">
                   ${product.text1!}
          </div>
     </div>  
     <div class="undis" id="tbc_13">
        <iframe width="740"  frameborder=0 scrolling=no  src="${base!}/searchDiscussPage.jspx?productId=${product.id!}" name="rightFrame" noresize="noresize" id="rightFrame"  height="800">
        </iframe>
     </div> 
     <div class="undis" id="tbc_14">
         <iframe width="740"  frameborder=0 scrolling=no  src="${base}/consultProduct.jspx?productId=${product.id!}" 
                  name="rightFrame" noresize="noresize" id="rightFrame"  height="800">
         </iframe>
     </div>
    <div class="undis" id="tbc_15">
        <iframe width="740"  frameborder=0 scrolling=no  src="${base}/bargain.jspx?productId=${product.id!}"
              name="rightFrame" noresize="noresize" id="rightFrame"  height="800">
         </iframe>
    </div>
    <div class="undis" id="tbc_16"> 
		<div id="recentlyViewed" class="group">
		   <div class="gt">
		      <div class="gt-title">
		         <div class="title-cn">最近浏览</div>
		         <div class="title-en">
		             <span class="fc1">R</span>ecent
		             <span class="fc1">V</span>iewed
		         </div>
		      </div>
		   </div>
		   <div class="gc">
		      <div id="liulan"></div>
		   </div>
		</div>
   </div>
</div>  
<div class="clear"></div>
</div>



 [#include "../include/footer_information_bar.html"/] 




  <script type="text/javascript">
		var p_id = "${product.id}";
		var p_title = "${product.name!}";
		var p_price = "${product.salePrice!}";
		var p_url = "${product.url!}";
		var p_pic = "";
		[#if product.pictures?? && product.pictures?size gt 0]
			[#list product.pictures as pic]
		 		[#if pic_index==0]
					p_pic ="${root!}${pic.picturePath!}";
		 		[/#if]
		  [/#list]
		[/#if]
		var id = "product";
		var price = "price";
		var title = "title";
		var pic = "pic";
		var url = "url";
	
		//*取出cookie并显示
		for(i = 0 ;i<5;i++){
			title = title+i;
			price = price+i;
			pic = pic+i;
			url = url+i;
			var arr0 = document.cookie.match(new RegExp("(^| )"+title+"=([^;]*)(;|$)"));
			var arr1 = document.cookie.match(new RegExp("(^| )"+price+"=([^;]*)(;|$)"));
			var arr2 = document.cookie.match(new RegExp("(^| )"+pic+"=([^;]*)(;|$)"));
			var arr3 = document.cookie.match(new RegExp("(^| )"+url+"=([^;]*)(;|$)"));
			if(arr0 != null ){
				var str = "<ul><li>"+
					"<div class='p-wrap'>"+
				"<div class='p-img'>"+
				"<a target='_blank' href="+unescape(arr3[2])+">"+
				"<img src='"+unescape(arr2[2])+"'>"+
				"</a>"+
				"</div>"+
				"<div class='p-info'>"+
				"<div class='p-name'>"+
				"<a target='_blank' title='"+unescape(arr0[2])+"' href='"+unescape(arr3[2])+"'>"+unescape(arr0[2])+"</a>"+
				"</div>"+
				"<div class='p-price'>"+
				"<s>￥</s>"+unescape(arr1[2])+
				"</div>"+
				"</div>"+
				"</div>"+
				"</li></ul>";
				$("#liulan").append(str);
			}
			price = "price";
			title = "title";
			pic = "pic";
			url = "url";
		}
		
		var number = 4;
		SetCookie();
		function SetCookie()//两个参数，一个是cookie的名子，一个是值
		{
			var Days = 30; //此 cookie 将被保存 30 天
		    var exp  = new Date();    //new Date("December 31, 9998");
		    exp.setTime(exp.getTime() + Days*24*60*60*1000);
			for(i = 0 ;i<5;i++){
				id = id+i;
				var arr = document.cookie.match(new RegExp("(^| )"+id+"=([^;]*)(;|$)"));
				if(arr != null && getCookie(id) == p_id){
					title = title+i;
					price = price+i;
					pic = pic+i;
					url = url+i;
					delCookie(id);
					delCookie(title);
					delCookie(price);
					delCookie(pic);
					delCookie(url);
					number = i;
				}
				id = "product";
				price = "price";
				title = "title";
				pic = "pic";
				url = "url";
			}
			for(var i = number ;i>0;i--){
				id0 = id+(i-1);
			    price0 = price+(i-1);
			    title0 = title+(i-1);
			    pic0 = pic+(i-1);
			    url0 = url+(i-1);
			    id = id +i;
			    price = price+i;
			    title = title+i;
			    pic = pic+i;
			    url = url + i;
			    if(getCookie(id0) != null){
			    	document.cookie = id + "="+ escape (getCookie(id0)) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
				    document.cookie = price + "="+ escape (getCookie(price0)) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
				    document.cookie = title + "="+ escape (getCookie(title0)) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
				    document.cookie = pic + "="+ escape (getCookie(pic0)) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
				    document.cookie = url + "="+ escape (getCookie(url0)) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
			    }
			    
			    id = "product";
			    price = "price";
				title = "title";
				pic = "pic";
				url = "url";
			}
			
		    
		    id = id+"0";
		    price = price+"0";
		    title = title+"0";
		    pic = pic+"0";
		    url = url +"0";
		    document.cookie = id + "="+ escape (p_id) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
		    document.cookie = price + "="+ escape (p_price) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
		    document.cookie = title + "="+ escape (p_title) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
		    document.cookie = pic + "="+ escape (p_pic) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
		    document.cookie = url + "="+ escape (p_url) + ";expires=" + exp.toGMTString()+";path=/;domain=.cmscms.com";
		    id = "product";
		    price = "price";
			title = "title";
			pic = "pic";
			url = "url";
		}
		
		
		
		function getCookie(name){//取cookies函数 
				var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
				if(arr != null ){
					return unescape(arr[2]);
				}else if(i == 5){
					return null;
				}
		}
		function delCookie(name)//删除cookie
		{
		    var exp = new Date();
		    exp.setTime(exp.getTime() - 1);
		    var cval=getCookie(name);
		    if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();
		}
		</script>
 
 
 [#if category.colorsize]
 <script language="JavaScript" type="text/JavaScript">
var sys_item={
		[#if product.productFashion??]
				"mktprice":"${product.productFashion.marketPrice!}",
				"price":"${product.productFashion.salePrice!}",
				"attitude":"${product.productFashion.attitude!}",
				"fashId":"${product.productFashion.id!}",
        [#else]
     	"mktprice":"",
		"price":"",
		"attitude":"",
		"attitude":"",
		"fashId":"",
		[/#if]
	
		"sys_attrprice":{
			[#list product.fashions as fash]
			 [#if fash_has_next]
			  "${fash.nature!}":{"price":"${fash.salePrice!}","mktprice":"${fash.marketPrice!}","attitude":"${fash.attitude!}","fashId":"${fash.id!}"},
             [#else]
              "${fash.nature!}":{"price":"${fash.salePrice!}","mktprice":"${fash.marketPrice!}","attitude":"${fash.attitude!}","fashId":"${fash.id!}"}
			 [/#if]
			[/#list]
		}
	};

//商品规格选择
$(function(){
	$(".sys_item_spec .sys_item_specpara").each(function(){
		var i=$(this);
		var p=i.find("ul>li");
		p.click(function(){
			
			if(!!$(this).hasClass("selected")){
				$(this).removeClass("selected");
				i.removeAttr("data-attrval");
			}else{
				$(this).addClass("selected").siblings("li").removeClass("selected");
				i.attr("data-attrval",$(this).attr("data-aid"))
			}
			getattrprice() //输出价格
		})
	})
	//获取对应属性的价格
	function getattrprice(){
		var defaultstats=true;
		var _val='';
		var _resp={
			mktprice:".sys_item_mktprice",
			price:".sys_item_price",
			attitude:".sys_item_attitude"
		}  //输出对应的class
		$(".sys_item_spec .sys_item_specpara").each(function(){
			var i=$(this);
			var v=i.attr("data-attrval");
			if(!v){
				defaultstats=false;
			}else{
				_val+=_val!=""?"_":"";
				_val+=v;
			}
		})
		
		if(!!defaultstats){
			if((sys_item['sys_attrprice'][_val])!=undefined){
				_mktprice=sys_item['sys_attrprice'][_val]['mktprice'];
				_price=sys_item['sys_attrprice'][_val]['price'];
				_attitude=sys_item['sys_attrprice'][_val]['attitude'];
				_fashId=sys_item['sys_attrprice'][_val]['fashId'];
			}else{
				alert("您选择的商品已无库存！");
				_mktprice=sys_item['mktprice'];
				_price=sys_item['price'];
				_attitude=sys_item['attitude'];
				_fashId=sys_item['fashId'];
			}
			
		}else{
			_mktprice=sys_item['mktprice'];
			_price=sys_item['price'];
			_attitude=sys_item['attitude'];
			_fashId=sys_item['fashId'];
		}
		//输出价格
		$(_resp.mktprice).text(_mktprice);  ///其中的math.round为截取小数点位数
		$(_resp.price).text(_price);
		$(_resp.attitude).text(_attitude);
		$("#current_merchantId").val(_fashId);
	}
})

</script>
[/#if]

</body>
</html>